package com.nyist.zk.dao;

import com.nyist.zk.entities.UseBlood;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * description: UseBloodDao
 * date: 2020/3/23 13:03
 * author: YXG
 * version: 1.0
 */
@Repository
public interface UseBloodDao {

    //血库管理员查看所有申请记录
    List<UseBlood> findAllUseBlood();

    //医生查看自己的申请记录
    List<UseBlood> findByUdIdAllUseBlood(Integer u_d_id);

    UseBlood findByUidUseBlood(Integer u_id);

    void insertUseBlood(UseBlood useBlood);

    void deleteUseBlood(Integer u_id);

    void updateUseBlood(UseBlood useBlood);

}
